package com.example.service.impl;

import com.example.dao.PermDao;
import com.example.pojo.Perm;
import com.example.service.PermService;

public class PermServiceImpl extends BaseImpl<PermDao> implements PermService {
    @Override
    public int add(Perm entity) {
        return mapper.add(entity);
    }

    @Override
    public void delete(int id) {
        mapper.deleteById(id);
    }

    @Override
    public void update(Perm entity) {
        mapper.updateById(entity);
    }

    @Override
    public Perm find(int id) {
        return mapper.findById(id);
    }
}
